package com.dx.childrenedu.service;

import com.dx.childrenedu.dao.UserMapper;
import com.dx.childrenedu.pojo.Users;
import org.apache.catalina.mapper.Mapper;

/**
 * @ClassName UserServiceImpl
 * @Description TODO
 * @Author xst
 * @Date 2022/10/11 23:36
 * @Version 1.0
 **/
public class UserServiceImpl implements UserService{
    /**调用dao层的操作，设置一个set接口，方便Spring管理*/
    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public int addUser(Users user) {
        return userMapper.addUser(user);
    }
}
